package com.yanmaohu.yulia.bean;

import java.util.List;

/**
 * @author Bright Lee
 */
public final class SetTargetList {

    private int beginIndex;
    private int endIndex;
    private List<SetTarget> setTargetList;

    public SetTargetList(List<SetTarget> setTargetList) {
        this.beginIndex = setTargetList.get(0).getBeginIndex();
        this.endIndex = setTargetList.get(setTargetList.size() - 1).getEndIndex();
        this.setTargetList = setTargetList;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public int size() {
        return setTargetList.size();
    }

    public SetTarget get(int index) {
        return setTargetList.get(index);
    }

}
